<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台--文章管理</title>
    <link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>images/style.css" />
    <base target="_self"/>

    <script src='<?php echo isset($skin)?$skin:"";?>js/jquery.min.js'></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/jquery.form.min.js"></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/dist/dialog-min.js"></script>
    <script src="<?php echo isset($skin)?$skin:"";?>js/admin.js"></script>
    <script type="text/javascript">
        <!--
        $(document).ready(function () {
            $('.new_table tbody tr:even').addClass('h'); //奇偶变色，添加样式
        });
        //-->
    </script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>/js/validate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate-plugin.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/form.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artDialog.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/iframeTools.js"></script>
<link rel="stylesheet" href="<?php echo isset($skin)?$skin:"";?>js/artdialog.css" type="text/css">
</head>
<body>
<div class="hh6"></div>
<div class=""></div>
<table class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
    <thead><tr class="n_bt"><td colspan="9" align="center">爱不语商城系统</td></tr>
    <tr><th class="thbt" colspan="9">【<?php echo isset($title)?$title:"";?>】</th></tr>
    </thead>
    <thead>
    <tr>
        <td height="28" align="center"  class="thbt">菜品名称</td>
        <?php if(is_array($cate_list))  foreach($cate_list as $v) { ?>
        <td height="28" align="center"  class="thbt"><a class="<?php if($order==$v->cat_id && $by){?>asc<?php }else{?>desc<?php }?>" href="?c=order&a=total&order=c<?php echo isset($v->cat_id)?$v->cat_id:"";?>&by=<?php if($order==$v->cat_id && $by){?>asc<?php }else{?>desc<?php }?>" ><?php echo isset($v->cat_name)?$v->cat_name:"";?></a></td>
        <?php }?>
        <td height="28" align="center"  class="thbt"><a class="<?php if($order==favorite && $by){?>asc<?php }else{?>desc<?php }?>" href="?c=order&a=total&order=favorite&by=<?php if($order==favorite && $by){?>asc<?php }else{?>desc<?php }?>">点赞数</a></td>
        <td height="28" align="center"  class="thbt"><a class="<?php if($order==total && $by){?>asc<?php }else{?>desc<?php }?>" href="?c=order&a=total&order=total&by=<?php if($order==total && $by){?>asc<?php }else{?>desc<?php }?>">实际销售数</a></td>
    </tr></thead>
    <tbody>
    <?php if(is_array($data))  foreach($data as $v) { ?>
    <tr align="center">
        <td  align="center" ><?php echo isset($v->name)?$v->name:"";?></td>
        <td height="20" align="center"><?php echo isset($v->c1)?$v->c1:"";?></td>
        <td height="20" align="center"><?php echo isset($v->c2)?$v->c2:"";?></td>
        <td height="20" align="center"><?php echo isset($v->c3)?$v->c3:"";?></td>
        <td height="20" align="center"><?php echo isset($v->c4)?$v->c4:"";?></td>
        <td height="20" align="center"><?php echo isset($v->c5)?$v->c5:"";?></td>
        <td height="20" align="center"><?php echo isset($v->c6)?$v->c6:"";?></td>
        <td height="20" align="center"><?php echo isset($v->favorite)?$v->favorite:"";?></td>
        <td height="20" align="center"><?php echo isset($v->og_c)?$v->og_c:"";?></td>
    </tr>
    <?php }?></tbody>
</table>
<div class="pages"><?php echo isset($pagelist)?$pagelist:"";?></div>
<script type="text/javascript">
    <!--
    $(document).ready(function () {
        $('.new_table tbody tr:even').addClass('h'); //奇偶变色，添加样式
    });
    //-->
</script>
</body>
</html>